#include"vector.h"

namespace hhz
{
	void test02()
	{
		vector<int> v;
		v.push_back(1);
		v.push_back(2);
		v.push_back(3);
		v.push_back(4);
		v.push_back(5);
		
		v.resize(15, 1);
		for (const auto& e : v)
		{
			std::cout << e;
		}std::cout << endl;
	}

	void test03()
	{
		vector<int> v;
		v.push_back(1);
		v.push_back(2);
		v.push_back(3);
		v.push_back(4);
		v.push_back(5);

		v.insert(v.begin()+3, 1);
		for (const auto& e : v)
		{
			std::cout << e;
		}std::cout << endl;

		v.erase(v.begin() + 2);
		for (const auto& e : v)
		{
			std::cout << e;
		}std::cout << endl;
	}

	

}

int main()
{
	//hhz::test01();
	//hhz::test02();
	hhz::test03();
	return 0;
}